//
//  SecondViewController.h
//  PrayerTimes
//
//  Created by Igor Karpenko on 6/8/13.
//  Copyright (c) 2013 Igor Karpenko. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PrayerTimesManager.h"
#import "DataProvider.h"
#import "PrayerTimeTable.h"
#import "PrayerTime.h"
#import "MBProgressHUD.h"


@interface PrayerTimesViewController : UIViewController <UITableViewDelegate, UITableViewDataSource, MBProgressHUDDelegate> {
	PrayerTimesManager *timesManager;
	DataProvider *dataProvider;
	int currentIndex;
	
	MBProgressHUD *HUD;
}

@property (retain, nonatomic) IBOutlet UIImageView *overlayImage;
@property (retain, nonatomic) IBOutlet UIButton *englishButton;
@property (retain, nonatomic) IBOutlet UIButton *arabButton;
@property (retain, nonatomic) IBOutlet UILabel *locationLabel;
@property (retain, nonatomic) IBOutlet UILabel *dateLabel;
@property (retain, nonatomic) IBOutlet UIButton *alarmButton;
@property (retain, nonatomic) IBOutlet UIButton *changeCityButton;
@property (retain, nonatomic) IBOutlet UITableView *tableView;

@property (retain ,nonatomic) PrayerTime *prayerTime;
@property (retain, nonatomic) NSArray *items;

@property (retain, nonatomic) NSString *fajr;
@property (retain, nonatomic) NSString *sunrise;
@property (retain, nonatomic) NSString *dhuhr;
@property (retain, nonatomic) NSString *asr;
@property (retain, nonatomic) NSString *maghrib;
@property (retain, nonatomic) NSString *isha;

@property (retain, nonatomic) NSTimer *timer;

-(IBAction) englishButtonTapped:(id)sender;
-(IBAction) arabButtonTapped:(id)sender;
-(IBAction) alarmButtonTapped:(id)sender;
-(IBAction) changeCityButtonTapped:(id)sender;
-(void) playPrayerSound;

@end
